Fix memory leak in openssl_sign() when passing invalid algorithm#18185
Fix memory leak in openssl_sign() when passing invalid algorithm#18185ndossche wants to merge 1 commit into
Conversation
|
I have a feeling this commit is causing breakage on PHP 8.5 as the This code: openssl_sign($signHeader, $signature, $privKey, 'sha256WithRSAEncryption');Now fails with the following error: Found via: https://github.com/PHPMailer/PHPMailer/actions/runs/16728360948/job/47350003979#step:9:33 |
|
@jrfnl I highly doubt it. I can run a bisect in half an hour or so though |
|
@nielsdos That would be appreciated! I agree that based on the code in this PR it seems unlikely, but it was the only commit I could find for PHP 8.5 which related to the |
|
@nielsdos Looking more closely - you're right, it can't be this commit - the (failing) CI builds from a PR were confusing the issue. Last passing is actually on May 31st, first failing on June 18th. Still mystifying though why the alias no longer works. I couldn't find anything in Shall I open a bug report instead ? |
|
@jrfnl It can also be an environment change, e.g. an update to the OpenSSL library itself. You may open a bug report. |
|
Nope, works in 8.4 breaks in 8.5, I'll bisect... |
|
@nielsdos I've gone through all commits in PHP I previously already verified via |
|
@nielsdos Thank you for doing that and confirming! In the mean time, I've set up a |
|
Great job @nielsdos for catching this memory leak. Are you planning to opensource the experimental static analysis tool that you used to catch this one? |
That's the plan eventually, the paper describing the analysis tool is currently under review |
Okay, where can I get my hands/eyes on the pre-release? Is it something online I can find? |
It's not public yet, it will only become public once the journal publishes the article and source code (after it got reviewer approval). |
|
Okay @nielsdos, thanks for the update. Looking forward. |
Detected using an experimental static analysis I'm developing.